package com.opgea.tutor.domain.entities;

import java.io.Serializable;

import javax.persistence.Embeddable;

/**
 * Entity implementation class for Entity: Email
 * 
 */
@Embeddable
public class Email implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 7593409330561436147L;
    private String emailId;
    private String description;

    public String getEmailId() {
	return emailId;
    }

    public void setEmailId(String emailId) {
	this.emailId = emailId;
    }

    public String getDescription() {
	return description;
    }

    public void setDescription(String description) {
	this.description = description;
    }

    @Override
    public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
	return result;
    }

    @Override
    public boolean equals(Object obj) {
	if (this == obj)
	    return true;
	if (obj == null)
	    return false;
	if (getClass() != obj.getClass())
	    return false;
	Email other = (Email) obj;
	if (emailId == null) {
	    if (other.emailId != null)
		return false;
	} else if (!emailId.equals(other.emailId))
	    return false;
	return true;
    }

}
